projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b7e43
)
luci-base: raise maximum POST value size to 100KB
author
Jo-Philipp Wich
<
[email protected]
>
Fri, 18 May 2018 14:42:43 +0000
(16:42 +0200)
committer
Jo-Philipp Wich
<
[email protected]
>
Fri, 18 May 2018 14:43:29 +0000
(16:43 +0200)
Signed-off-by: Jo-Philipp Wich <
[email protected]
>
modules/luci-base/luasrc/http.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/http.lua
b/modules/luci-base/luasrc/http.lua
index 16fb04c549890f8c3acd63dc8dc7f397685f903a..f4ede4b8a5771ea3b7eacb301993f09d1ddee912 100644
(file)
--- a/
modules/luci-base/luasrc/http.lua
+++ b/
modules/luci-base/luasrc/http.lua
@@
-14,7
+14,7
@@
local table, ipairs, pairs, type, tostring, tonumber, error =
module "luci.http"
-HTTP_MAX_CONTENT = 1024*
8 -- 8
kB maximum content size
+HTTP_MAX_CONTENT = 1024*
100 -- 100
kB maximum content size
context = util.threadlocal()
@@
-416,7
+416,7
@@
function mimedecode_message_body(src, msg, file_cb)
end
return true
- end)
+ end
, HTTP_MAX_CONTENT
)
return ltn12.pump.all(src, function (chunk)
len = len + (chunk and #chunk or 0)
@@
-460,7
+460,7
@@
function urldecode_message_body(src, msg)
end
return true
- end)
+ end
, HTTP_MAX_CONTENT
)
return ltn12.pump.all(src, function (chunk)
len = len + (chunk and #chunk or 0)